/*
 * Copyright (c) 2014 laidian. All Rights Reserved.
 * 
 * @author yaoyuming
 * 
 * @date 2020-07-13 10:27
 */
package com.yao.sys.mapper.sql;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.yao.sys.entity.dto.RoleMenuRelDto;

/**
 * 角色-菜单关系sql组装
 * 
 * @author yaoyuming
 * @date 2020/07/13 10:27
 */
public class RoleMenuRelWrapper {

    public static Wrapper<RoleMenuRelDto> byRoleId(Integer roleId) {
        LambdaQueryWrapper<RoleMenuRelDto> wrapper = Wrappers.lambdaQuery();
        wrapper.eq(RoleMenuRelDto::getRoleId, roleId);
        return wrapper;
    }

}